{"version":3,"file":"image_panel.map.js","names":["BX","namespace","Landing","UI","Panel","Image","id","Content","apply","this","arguments","layout","classList","add","onChangeHandler","headerButtonsField","createHeaderButtons","cards","Collection","BaseCollection","overlay","title","appendChild","innerText","Loc","getMessage","Main","isEditorMode","isExternalControlsEnabled","window","parent","top","document","body","parentNode","removeChild","getInstance","instance","prototype","constructor","__proto__","onChangeView","value","showUnsplash","showGoogle","showUploader","uploader","get","Card","Uploader","appendCard","hideAll","show","google","Google","searchLabel","searchTips","name","description","onChange","bind","params","uploadParams","showPopular","unsplash","Unsplash","forEach","card","hidden","Field","ButtonGroup","items","active","view","loader","externalLoader","call","Promise","resolve","promiseResolve","hide","Utils","urlToBlob","link","then","blob","lastModifiedDate","Date","split"],"sources":["image_panel.js"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBAYbD,GAAGE,QAAQC,GAAGC,MAAMC,MAAQ,SAASC,GAEpCN,GAAGE,QAAQC,GAAGC,MAAMG,QAAQC,MAAMC,KAAMC,WACxCD,KAAKE,OAAOC,UAAUC,IAAI,0BAC1BJ,KAAKK,gBAAkB,WAAc,EACrCL,KAAKM,mBAAqBN,KAAKO,sBAC/BP,KAAKQ,MAAQ,IAAIjB,GAAGE,QAAQgB,WAAWC,eAEvCV,KAAKW,QAAQR,UAAUC,IAAI,0BAC3BJ,KAAKY,MAAMC,YAAYb,KAAKM,mBAAmBJ,QAE/CF,KAAKY,MAAME,UAAYvB,GAAGE,QAAQsB,IAAIC,WAAW,qCAEjD,GAAIzB,GAAGE,QAAQwB,KAAKC,eACpB,CACC,GAAI3B,GAAGE,QAAQwB,KAAKE,6BAA+BC,OAAOC,QAAWD,OAAOC,SAAWC,IACvF,CACCF,OAAOC,OAAOE,SAASC,KAAKX,YAAYb,KAAKE,QAC7C,MACD,CACD,CAEAF,KAAKW,QAAQc,WAAWC,YAAY1B,KAAKW,SACzCY,SAASC,KAAKX,YAAYb,KAAKW,SAC/BY,SAASC,KAAKX,YAAYb,KAAKE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